<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>

<!--begin main-->
<div id="main">
  <div id="main_l" class="bdr_1">
    <!--位置导航-->
    <div id="position"><a href="">首页</a><a href="tags.php">热门标签</a><?php echo $tag;?>（<?php echo $hits;?>）</div>
    <div class="bdr_2">
      <ul class="pic_list">
       <?php echo tag('phpcms', 'tag_content_cat_pic', "SELECT * FROM `phpcms_content` a,`phpcms_content_tag` k WHERE a.contentid=k.contentid and a.`status`=99 AND a.thumb!='' AND k.`tag` IN(".get_sql_in($tag).") ORDER BY a.contentid DESC", 0, 6, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '12',  'width' => '92',  'height' => '64',));?>
      </ul>
    </div>
    <div class="mar_10">   
    <?php echo tag('phpcms', 'tag_content_ul', "SELECT * FROM `phpcms_content` a,`phpcms_content_tag` k  WHERE a.contentid=k.contentid and a.`status`=99 AND k.`tag` IN(".get_sql_in($tag).") ORDER BY a.contentid DESC", $page, 10, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '80',));?>
    </div>
  </div>
  <div id="main_r">
    <!--广告位-->
    <div class="ads_side"><script language="javascript" src="data/js.php?id=5"></script></div>
    <h4>推荐图片信息</h4>
    <div>
      <ul class="pic_list">
        <?php echo tag('phpcms', 'tag_content_pic', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `thumb`!=''  ORDER BY contentid DESC", 0, 9, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '12',  'height' => '62',  'width' => '87',));?>
      </ul>
    </div>
    <h4>热点信息</h4>
    <div>
      <ul class="text_list">
        <?php echo tag('phpcms', 'tag_content', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   ORDER BY contentid DESC", 0, 10, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '46',));?>
      </ul>
    </div>

  </div>
</div>

<?php include template('phpcms','footer'); ?>